<?php
class Del extends Controller {
	public function json() {
		$uid = $this->post('uid', 'int');
				
		if(!$uid) $this->displayJSON(array('status' => -1, 'message' => '未知分组'));
		
		$mUser = new User_model();
		$params = array('uid' => $uid);
		$result = $mUser->deleteUser($params);
		if($result) $this->displayJSON(array('status' => 0, 'message' => '删除用户成功'));
		else $this->displayJSON(array('status' => -2, 'message' => '删除用户失败'));
	}
}